package game;

import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.geom.Point2D;
import java.util.LinkedList;

class Menu extends Scene
{
	Background background;
	
	public Menu()
	{
		background = new Background(1,new Point(0,0), new Point(800,600));
		background.setImage(1);
	}

	public void update()
	{
		
		if (new Rectangle(262, 222, 278, 41).contains(Mouse.getInstance().getPositionMouse().getX(),
				Mouse.getInstance().getPositionMouse().getY()))
		{
			if (Mouse.getInstance().isMousePressed(MouseEvent.BUTTON1))
				SceneManager.changeScene(1);
		}
		else if(new Rectangle(262, 318, 278, 41).contains(Mouse.getInstance().getPositionMouse().getX(),
				Mouse.getInstance().getPositionMouse().getY()))
		{
			if (Mouse.getInstance().isMousePressed(MouseEvent.BUTTON1))
				SceneManager.changeScene(3);
		}
	}

	public void draw(Graphics2D g2d)
	{
		background.draw(g2d);
	}
}